package com.beibojd.service.impl;

import com.beibojd.dao.OrderAddMapper;
import com.beibojd.pojo.OrderAdd;
import com.beibojd.service.OrderAddService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 洪耀荣
 * @Date: 2021-06-27 16:03:06
 */
@Service
public class OrderAddServiceImpl implements OrderAddService {
    @Autowired
    public OrderAddMapper orderAddMapper;
    @Override
    public List<OrderAdd> selectAll() {
        return orderAddMapper.selectAll();
    }

    @Override
    public void addOrderAdd(OrderAdd orderAdd) {
        orderAddMapper.insert(orderAdd);
    }

    @Override
    public void deleteAll() {
        orderAddMapper.deleteAll();
    }
}
